﻿using System;

namespace TypeSafety
{
    class Program
    {
        static void Main(string[] args)
        {
            BorderSide b = (BorderSide)12345;
            Console.WriteLine(Enum.IsDefined(typeof(BorderSide),b));
            
        }
    }

    public enum BorderSide { Left, Right, Top, Bottom }
}
